<?php
/***********************************************
	This class would set the image attributes
	using the parameter $image.
************************************************/
class ImageAttributesSetter {
	private $imageWidth = NULL;
	private $imageHeight = NULL;
	private $imageAttributesArray = NULL;
	
	/************************************************************/
	
	function setImageWidth_Height($image) {
		$this->imageWidth = imagesx($image);
		$this->imageHeight = imagesy($image);
		
		$this->imageAttributesArray = array();
		$this->imageAttributesArray['imageWidth'] = $this->imageWidth;
		$this->imageAttributesArray['imageHeight'] = $this->imageHeight;
		
		return $this->imageAttributesArray;
	}
}
?>